#!/usr/bin/env python3
# -*- coding: utf-8 -*-

print('hello', 'chester7程')

print('%2d-%02d' % (3, 1))
print('%.2f' % 3.1415926)

print('中文'.encode('gb2312'))


def my_abs(x):
    if not isinstance(x, (int, float)):
        return TypeError('bad operand type')
    if x >= 0:
        return x
    else:
        return -x


print(my_abs(-99))

print(list(range(7)))
